﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Project5.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class init2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing");

            migrationBuilder.AddForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing",
                column: "Testing1Id",
                principalTable: "testing1",
                principalColumn: "Id",
                onDelete: ReferentialAction.Restrict);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing");

            migrationBuilder.AddForeignKey(
                name: "FK_testing_testing1_Testing1Id",
                table: "testing",
                column: "Testing1Id",
                principalTable: "testing1",
                principalColumn: "Id");
        }
    }
}
